import BaseApi from '../BaseApi';

const controller = "/deviceVersion";
export default {

    getDeviceVersionRecordList(condition) {
        return this.requestPost(controller, "/getDeviceVersionRecordList", condition);
    },

    updateDeviceVersionRecord(condition) {
        return this.requestPost(controller, "/updateDeviceVersionRecord", condition);
    },

    addDeviceVersionRecord(condition) {
        return this.requestPost(controller, "/addDeviceVersionRecord", condition);
    },
    deleteDeviceVersionRecord(condition) {
        return this.requestPost(controller, "/deleteDeviceVersionRecord", condition);
    },

    /*请求封装*/
    requestPost(controller, url, condition) {
        let newUrl = controller + url;
        return BaseApi.requestPost(newUrl, condition);

    }

    ,
    requestDownLoadGet(controller, url, condition) {
        let newUrl = controller + url;
        return BaseApi.requestDownloadGet(newUrl, condition);
    }
}
